package com.yuju.common;

import java.io.Serializable;

import com.yuju.common.fileld.validator.Rule.NonNull;

/**
 * 类名：BaseVo  <br />
 *
 * 功能：封装了基本的参数
 *
 * @author : xuehj <br />
 * @Date : 2017年9月13日 下午2:26:47  <br />
 * @version : 1.1 <br />
 */
public class BaseVO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private String token;
	
	// 每页显示记录数
	@NonNull(message = "每页显示行数不能为空", serviceLine = "pager")
	private Integer pageSize;
	
	// 每页显示记录数
	@NonNull(message = "每页显示行数不能为空", serviceLine = "pager")
	private Integer rows;
	
	// 当前页码
	@NonNull(message = "页数不能为空", serviceLine = "pager")
	private Integer page;
	
	// 模糊查询关键字
	private String q;
	
	// 排序字段
	private String sort;
	
	// 排序类型：asc-升序，desc-降序
	private String order;
	
	// 用于页面批量操作时，传递过来的主键值
	private String ids;

	/**
	 * 酒店ID
	 */
	private String hotelId;
	/**
	 * 酒店编码
	 */
	private String hotelCode;
	/**
	 * 集团ID
	 */
	private String groupId;
	/**
	 * 员工
	 */
	private String empId;
	/**
	 * 员工编码
	 */
	private String empCode;
	/**
	 * 员工名称
	 */
	private String empName;
	
	private String test;
	
	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Integer getRows() {
		if (this.rows == null) {
			this.rows = this.pageSize;
		}
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public String getQ() {
		return q;
	}

	public void setQ(String q) {
		this.q = q;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public String getHotelId() {
		return hotelId;
	}

	public void setHotelId(String hotelId) {
		this.hotelId = hotelId;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getEmpId() {
		return empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getHotelCode() {
		return hotelCode;
	}

	public void setHotelCode(String hotelCode) {
		this.hotelCode = hotelCode;
	}

	public String getEmpCode() {
		return empCode;
	}

	public void setEmpCode(String empCode) {
		this.empCode = empCode;
	}

	public String getTest() {
		return test;
	}

	public void setTest(String test) {
		this.test = test;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
}
